//
//  CheckModelType.swift
//  AESOLAR_IOS
//
//  Created by Mr.Wang on 2019/10/17.
//  Copyright © 2019 Mr.Wang. All rights reserved.
//

import UIKit

enum CheckModelType {
    case NFC
    case scan
}

extension CheckModelType {
    var image: UIImage? {
        switch self {
        case .NFC:
            return UIImage.init(named: "nfc_icon")
        case .scan:
            return UIImage.init(named: "scan_icon")
        }
    }
    
    var name: String {
        switch self {
        case .NFC:
            return "NFC查验".localized
        case .scan:
            return "条码查验".localized
        }
    }
    
    var detail: String {
        switch self {
        case .NFC:
            return "- 请将手机背面贴近芯片标签；\n- 仅支持iOS13及以上系统；".localized
        case .scan:
            return "- 请将手机摄像头对准条形码；".localized
        }
    }
}
